import i18n from '../../../i18n/i18n'
export const tableOption = {
  menu: false,
  border: true,
  index: true,
  indexLabel: i18n.t('sysManagement.serialNumber'),
  indexWidth: i18n.t('language') === 'language' ? '120' : '50',
  stripe: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  searchBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [
    // 搜索数据
    {
      label: i18n.t('distributionBind.customer'),
      prop: 'nickName',
      search: true,
      slot: true
    }, {
      label: i18n.t('distributionProdLog.distributor'),
      prop: 'parentNickName',
      search: true,
      slot: true
    }, {
      label: i18n.t('distribution.bindingTime'),
      prop: 'bindTime',
      sortable: true
    }, {
      label: i18n.t('distribution.invalidTime'),
      prop: 'invalidTime',
      sortable: true,
      dicData: [
        {
          label: i18n.t('distribUserWallet.nothing'),
          value: ''
        }
      ]
    }, {
      width: 150,
      label: i18n.t('distributionBind.currentRelationship'),
      prop: 'state',
      search: true,
      type: 'select',
      dicData: [
        {
          label: i18n.t('seckill.loseEffectiveness'),
          value: -1
        }, {
          label: i18n.t('distributionBind.binding'),
          value: 1
        }
      ]
    }]
}
